package com.team1.manager.role.entity;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;
/**
 * 角色权限
 * @author yzy
 *
 */
public class RolePrivilege implements Serializable {
	private String id;
	private String name;//权限的名称
	private String content;//实际对应的权限，英语表示
	private Set<Role> roles = new HashSet<Role>();
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public Set<Role> getRoles() {
		return roles;
	}
	public void setRoles(Set<Role> roles) {
		this.roles = roles;
	}
	public RolePrivilege() {
		//super();
	}
	public RolePrivilege(String id, String name, String content, Set<Role> roles) {
		//super();
		this.id = id;
		this.name = name;
		this.content = content;
		this.roles = roles;
	}
	
}
